package com.ruoyi.api.utils;


import com.ruoyi.vim.domain.ImGroupUser;
import com.ruoyi.vim.domain.TransImGroupUser;


public class Systrans {

    public TransImGroupUser trans(ImGroupUser imGroupUser){
        TransImGroupUser transImGroupUser = new TransImGroupUser();
        transImGroupUser.setId(imGroupUser.getId());
        transImGroupUser.setGroupId(Long.valueOf(imGroupUser.getGroupId()));
        transImGroupUser.setUserId(Long.valueOf(imGroupUser.getUserId()));
        transImGroupUser.setState(imGroupUser.getState());
        transImGroupUser.setMessage(imGroupUser.getMessage());
        transImGroupUser.setCreateTime(imGroupUser.getCreateTime());
        transImGroupUser.setUpdateTime(imGroupUser.getUpdateTime());
//        transImGroupUser.setCreateBy(Long.valueOf(imGroupUser.getCreateBy()));
//        transImGroupUser.setUpdateBy(Long.valueOf(imGroupUser.getUpdateBy()));
        transImGroupUser.setDelFlag(imGroupUser.getDelFlag());
        transImGroupUser.setRemarks(imGroupUser.getRemarks());
        transImGroupUser.setRemark(imGroupUser.getRemark());
        return transImGroupUser;
    }
}
